package com.example.springdemo.service;

import com.example.springdemo.entity.User;
import com.example.springdemo.entity.VO.LoginUser;
import com.example.springdemo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public User getUser(LoginUser loginUser) {
        return userMapper.getUser(loginUser);
    }

    @Override
    public User getUserById(Integer userId) {
        return userMapper.getUserById(userId);
    }
}
